using Web.App.Infrastructure.Localization.Contract;
using Webshop20.Application.DataTransferObjects;

namespace Webshop20.Presentation
{
    public abstract class RegistrationBase : PresentationModelBase
    {
        protected NewRegistrationDTO newRegistrationDTO;
        protected readonly string accountInterimKey;
        protected readonly string customerInterimKey;

        protected RegistrationBase(ILocalisationService localisationService, NewRegistrationDTO newRegistrationDTO, string accountInterimKey, string customerInterimKey) : base(localisationService)
        {
            this.newRegistrationDTO = newRegistrationDTO;
            this.customerInterimKey = customerInterimKey;
            this.accountInterimKey = accountInterimKey;
        }

        public string CustomerInterimKey
        {
            get { return customerInterimKey; }
        }

        public string AccountInterimKey
        {
            get { return accountInterimKey; }
        }

        public string FirstName
        {
            get { return newRegistrationDTO.FirstName; }

        }

        public string LastName
        {
            get { return newRegistrationDTO.LastName; }
        }


        public string Password
        {
            get { return newRegistrationDTO.Password; }

        }

        public string ControlAnswer
        {
            get { return newRegistrationDTO.ControlAnswer; }

        }

        public string ControllQuestionId
        {
            get { return newRegistrationDTO.ControlQuestionId; }
        }

        public string EMail
        {
            get
            {
                return newRegistrationDTO.EMail;
            }

        }
    }
}